//轮播图相关代码
import {onMounted, ref} from "vue";
import httpInstance from "@/http/index.js";

export function useBanner() {
    const banner = ref([])
    const getBanner = async () => {
        const {data} = await httpInstance.get("/vueTest/getBanner");
        banner.value = data;
    }

    onMounted(() => getBanner())
    return {
        banner
    }
}